#ifndef _LOG_HPP_
#define _LOG_HPP_

#include <cstdio>
#include <ctime>
#include <string>
using namespace std;

enum MsgTypeID{
    DEBUG,
    NOTICE,
    WORNING,
    ERROR
};

const char* MsgTypeName[] = {"DEBUG", "NOTICE", "WORNING", "ERROR"};

void PrintLog(string msg, MsgTypeID id){
    printf("%u | %s: %s\n", (unsigned)time(nullptr), MsgTypeName[id], msg.c_str());
}

#endif